package red.stu.demo.pconstraint.demo;

import red.stu.pconstraint.ProcessUtils;
import red.stu.pconstraint.annotation.ProcessBranch;
import red.stu.pconstraint.annotation.ProcessNode;

/**
 * demo
 *
 * @author yihrmc@stu.red
 * @date 2019/11/13 16:40
 */
@ProcessBranch(branchId = "b1", processIdClass = MyProcessService.class)
public class MyProcessOtherService {

    @ProcessNode("p1")
    public void b1_p1(MyProcess process) {
        // ProcessUtils.get(process).next();
    }

    @ProcessNode("p2")
    public void b1_p2(MyProcess process) {
        ProcessUtils.get(process).next();
    }

}
